<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html>
<head>
<title><bean:message key="adminindividualaccounts.title"/></title>

<link rel="stylesheet" href="<%=request.getContextPath() %>/default.css" type="text/css">
<html:base/>
</head>
<body>

<div id="header">
	<div id="logo">
		<h1>
			<html:img width="40" src="../images/EMPTY.GIF"/>
			<html:link page="/pages/home.jsp">Textbook Crossroads</html:link>
		</h1>
		<h2>Team 14 - LoneTree</h2>
	</div>
	<div id="menu">
		<ul>
			<li class="active"><html:link page="/pages/admindashboard.jsp">Dashboard</html:link></li>
			<li><html:link page="/pages/books.jsp">Books</html:link></li>
			<li><html:link page="/pages/courses.jsp">Courses</html:link></li>
			<li><html:link page="/pages/about.jsp">About</html:link></li>
			<li class="logon"><html:link action="/logout">LogOut</html:link></li> 
		</ul>
	</div>
</div>

<div id="content">
	<div id="sidebar">
			<div id="categories">
			<div id="archives" class="boxed">
				<h2>Admin Actions</h2>
				<div class="content">
					<ul>
			    		<li><html:link href="bookadmin.jsp"><bean:message
			            key="adminbook.link"/></html:link></li>
			            
			            <li><html:link action="/AdminCourses"><bean:message
			            key="admincourses.link"/></html:link></li>
			            
			            <li><html:link action="/AdminAccounts"><bean:message
			            key="adminaccounts.link"/></html:link></li>
			            
			            <li><html:link action="/AdminComments"><bean:message
			            key="admincomments.link"/></html:link></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div id="posts">
		<div class="post">
			<h2 class="title"><bean:message key="adminindividualaccounts.heading"/></h2>
			<div class="meta">
				<p class="date">User Details:</p>
			</div>
			<div class="story">
				<html:form action="/UpdateUser">
				<logic:present name="UserForm">
				<table border=0 width="50%">
				<tr>
				<th align="right">	
				<bean:message key="prompt.userId"/>
				</th>
				<td align="left">
				
				<html:text property="username" readonly="true"/>
				<html:hidden property="admin"/>
				</td>
				</tr>
				<tr>
			            <th align="right">
			                <bean:message key="prompt.firstname"/>:
			            </th>
			            <td align="left">
			                <html:text property="firstName" size="20"/><br>
			            </td>
			        </tr>
				
				<tr>
			            <th align="right">
			                <bean:message key="prompt.lastname"/>:
			            </th>
			            <td align="left">
			                <html:text property="lastName" size="20"/><br>
			            </td>
			        </tr>
				
					<tr>
			            <th align="right">
			                <bean:message key="prompt.password"/>:
			            </th>
			            <td align="left">
			                <html:text property="password" size="20"/><br>
			            </td>
			        </tr>
				
				
				<tr>
			            <th align="right">
			                <bean:message key="prompt.email"/>:
			            </th>
			            <td align="left">
			                <html:text name="UserForm" property="email" size="20"/>
			            </td>
			        </tr>
			        <tr>
			            <th align="right">
			                <bean:message key="prompt.address"/>:
			            </th>
			            <td align="left">
			                <html:text property="location" size="20"/>
			            </td>
			        </tr>
			        <tr>
				        <th>
				        </th>
			        	<td>
			            	<html:submit value="Update"></html:submit>
			            </td>
			        </tr>
			        </table>
				</logic:present>
				</html:form><br/>
			</div>
		</div>
	</div>
</div>

<div id="footer">
	<p id="copy">&copy;2007 LoneTree.</p>
	<p> (Andrew Lee | Bojan Martin | Dimeji Omikunle | Minghui Yu)</p>
</div>
</body>
</html:html>